#include "multiframeimagesavethread.h"
#include "imageacquisitwidget.h"

MultiFrameImageSaveThread::MultiFrameImageSaveThread(DcmFileFormat &dff, QObject *parent) :
    ff(dff),
    QThread(parent)
{
}

void MultiFrameImageSaveThread::run()
{
    QString file;
    bool ok = ImageAcquisitWidget::savePrImageToDb(ff, file);
    if (!ok) file.clear();
    emit resultReady(file);
}
